package test;

/**
 * @author chihb
 * @create-time 2024/6/20 11:02
 * @description
 */
public class copy {
    public static void main(String[] args) {
        int[] newArray=copyArray(new int[]{10,66,82,60,42,63});
        for (int i:newArray){
            System.out.println(i);
        }

    }
    private static int[] copyArray(int[] array){
        int[] a=new int[array.length];
        for (int i = 0; i < array.length; i++) {
            a[i]=array[i];
        }
        return a;
    }
}
